package job.gfp.ranks.base;

public class RanksUtil {

    public static final String DELIM = "#";

    public static final String Rank = "R";

    public static boolean isWrappedBy(String tag, String text) {
        return text.startsWith(tag);
    }

    public static String unwrap(String tag, String text) {
        if (isWrappedBy(tag, text)) {
            return text.substring(tag.length());
        } else {
            return text;
        }
    }

    public static String wrap(String tag, String text) {
        return tag + text;
    }

}
